package com.breeze.blockchain.service.strategy.login;

import com.breeze.blockchain.common.enums.LoginTypeEnum;
import com.breeze.blockchain.mybatis.entity.UserDo;
import com.breeze.blockchain.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 手机号验证码登陆
 *
 * @author breeze
 */
@Service
public final class MobileLoginStrategy implements LoginStrategy {

  @Resource UserService userService;

  @Override
  public LoginTypeEnum loginType() {
    return LoginTypeEnum.MOBILE_CODE;
  }

  @Override
  public UserDo login(String mobile, String code) {
    throw new UnsupportedOperationException();
  }
}
